<route>
{
    name: 'dashboard',
    meta: {
        title: "控制台"
    }
}
</route>

<script setup>
import useUserStore from "@/store/modules/user"

const userStore = useUserStore();

onMounted(() => {
    userStore.getCurentAccout().then(res => {
        localStorage.setItem("MEDIA_USER_INFO", JSON.stringify(res))
        if(localStorage.getItem("MEDIA_RE") == 0) {
            localStorage.setItem("MEDIA_RE", 1)
            location.reload()
        }
    })
})
</script>

<template>
    <div>
        <page-header title="欢迎使用">
            <template #content>
                <div>
                    <div style="margin-bottom: 5px;">媒资系统</div>
                    <div class="text-emphasis" />
                </div>
            </template>
        </page-header>
        <page-main>
            <div class="blankA" />
        </page-main>
    </div>
</template>

<style lang="scss" scoped>
.text-emphasis {
    text-emphasis-style: "❤";
}
canvas {
    position: fixed;
}
.box {
    position: absolute;
    top: 50%;
    left: 50%;
}
.blankA {
    height: 250px;
    width: 100%;
}

</style>
